<%inherit file="base.mako"/>
<%def name="title()">
    signup
</%def>
<%def name="js()">
    ${h.javascript_link("/user/signup.jquery.js")}
</%def>
<span class="form">
    ${h.secure_form(url('create_user'),id='form')}
        <% _username = session.get('username','') %>
        Your name , please :  ${h.text(name='username',id='username',value=_username)}
        <span class="hide"> 
            <span class="error">
                <div id="nameempty">User name cannot be empty</div>
                <div id="nameexisted">User name already existed</div>
            </span>
        </span><br>
        Your password : ${h.password(name='password',id='password')}
        <span class="hide"> 
            <span class="error">
                <div id="pwdempty">Password cannot be empty</div>
                <div id="pwddifferent">Two password is not the same</div>
            </span>
        </span><br>
        Password again , please : ${h.password(name='password1',id='password1')}<br>
        Email : ${h.text(name='email',id='email')} <div id='emailerr'></div>
        <span class="hide"> 
            <span class="error">
                <div id="emailempty">Email cannot be empty</div>
                <div id="emailinvalid">Email format is not valid</div>
            </span>
        </span><br>
        Your signature : ${h.textarea(name='sign',id='sign')}<br>
        Your description : ${h.textarea(name='description',id='description')}<br>

        ${h.submit(name='submit',id='submit',value='Create It!')}
    ${h.end_form()}
</span>

